#ifndef HOMESCREEN_H
#define HOMESCREEN_H

#include <QtGui>

#include "gui/shinylist.h"
#include "gui/separatorwidget.h"
#include "gui/loginviewdialog.h"


class HomeScreen : public QWidget
{
    Q_OBJECT
public:
    explicit HomeScreen(QWidget *parent = 0);

signals:
    void fileOpened(QString filePath);

public slots:
    void onOpenCmdLinkClicked();
    void onCreateCmdLinkClicked();
    void onCloseCmdLinkClicked();

private:
    void initUiComponents();
    void initSignalsAndSlots();
    void setOpenFile(QString filePath);
    void clearOpenFile();


    QVBoxLayout *mainLayout;
    QLabel *header;
    QLabel *subHeader;

    QCommandLinkButton *newFileButton;
    QCommandLinkButton *openFileButton;
    QCommandLinkButton *closeFileButton;

    SeparatorWidget *middleSeparator;

    QVBoxLayout *rightLayout;
};

#endif // HOMESCREEN_H
